<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>qgjgame</title>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
  <script>
      /**
       * 监听文档大小改变
       * 设置对应屏幕宽度的根节点字体大小
       * 基础比例: 320px屏幕宽度=>15px字体大小
       */
      (function () {
          var docEl = document.documentElement,
              resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
              recalc = function () {
                  var clientWidth = docEl.clientWidth;
                  if (!clientWidth) return;
                  docEl.style.fontSize = 15 * (clientWidth / 320) + 'px';
              };

          if (!document.addEventListener) return;
          window.addEventListener(resizeEvt, recalc, false);
          document.addEventListener('DOMContentLoaded', recalc, false);
      })();
  </script>
</html>
